/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package simpledraw;

import java.awt.Color;
import java.awt.Graphics;
import java.util.Iterator;

/**
 *
 * @author renatocardoso
 */
public class DefaultShape extends Shapes
{
    @Override
  public void draw(Graphics g){

    Iterator it = getList().iterator();
    if(it.hasNext()){
        int Width = (Integer)it.next();
        int Height = (Integer)it.next();
        g.setColor(Color.WHITE);
        g.fillRect(0,0,Width,Height);
        g.setColor(Color.BLACK);
        //getList().clear();
      }
  }
}
